package com.colors.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author colors
 * @date 2020/12/30 15:54
 */
@RestController
@Slf4j
public class paymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/zk")
    public String paymentzk() {
        return "Spring Cloud with Zookeeper:" + serverPort + "\t" + UUID.randomUUID().toString();
    }

}
